package com.bestcem.xm.award.controller.param.award;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 更新奖励状态请求体
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v3.0
 * @date 2021/8/17 16:50
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
public class UpdateAwardStatusParam implements Serializable {

    /**
     * 奖励id
     */
    @NotBlank(message = "奖励id为空！")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "奖励id异常！")
    private String id;

    /**
     * 修改后的奖励状态
     */
    @NotNull(message = "奖励状态不能为空")
    private Integer status;
}
